<?php
/**
 * Created by PhpStorm.
 * User: YONBIN
 * Date: 2020/10/16
 * Time: 16:55
 * Email: 479703456@qq.com
 */

namespace app\model;


use think\model\concern\SoftDelete;

class AdminMenus extends BaseModel
{
    use SoftDelete;
    protected $autoWriteTimestamp = true;
    protected $defaultSoftDelete = 0;

    public function search(Array $search): AdminMenus
    {
        return $this;
    }

    public function relation()
    {
        return $this->hasMany('AdminGroupMenusRelation', 'menu_id', 'id');
    }
}